Skip to content

document the top-left origin window coordinate convention - #202

Merged
igagis merged 1 commit into
cppfw:mainfrom
igagis-bot:top-left-origin
Nov 29, 2026
Merged

igagis merged 1 commit into
cppfw:mainfrom
igagis-bot:top-left-origin

Conversation

@igagis-bot

Copy link
Copy Markdown
Contributor

The renderers (to_window_coords, get/set_viewport, get/set_scissor) all use the same window coordinate system: top-left origin, x right, y down. Document this single canonical convention in the context API docs instead of leaving it renderer-specific.

The window coordinate system used by the renderers (to_window_coords,
get/set_viewport, get/set_scissor) is always top-left origin (x right,
y down). Document this in the context's API docs so the renderers have
a single canonical convention to implement.
@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.55%. Comparing base (0d19bcf) to head (9dba30e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #202   +/-   ##
=======================================
  Coverage   28.55%   28.55%           
=======================================
  Files         239      239           
  Lines        8945     8945           
  Branches     2785     2785           
=======================================
  Hits         2554     2554           
  Misses       6057     6057           
  Partials      334      334           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@igagis
igagis merged commit a25c79e into cppfw:main Nov 29, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants